namespace SimpleWebServices.Web.UI.Html.Validation
{
    using System;
    using System.Collections.Generic;
    using SimpleWebServices.Data;
    using SimpleWebServices.Web.UI.Html.Elements;
    using Xunit;

    public sealed class IValidateFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IValidate).IsInterface);
        }

        [Fact]
        public void IValidate_Display_get()
        {
            try
            {
                IInnerElements value = (new IValidateDummy() as IValidate).Display;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IValidate_Display_set()
        {
            try
            {
                (new IValidateDummy() as IValidate).Display = null as IInnerElements;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IValidate_Errors_get()
        {
            try
            {
                IList<IError> value = (new IValidateDummy() as IValidate).Errors;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IValidate_Configure_IElement_DataCollection()
        {
            try
            {
                (new IValidateDummy() as IValidate).Configure(null as IElement, null as DataCollection);
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IValidate_DisplayErrors()
        {
            try
            {
                (new IValidateDummy() as IValidate).DisplayErrors();
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IValidate_Validate_IElement()
        {
            try
            {
                bool value = (new IValidateDummy() as IValidate).Validate(null as IElement);
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}